#ifndef BITMAPLOADER_H
#define BITMAPLOADER_H

#include "allegro5\allegro.h"
#include <string>
#include <map>

ALLEGRO_BITMAP *LoadBitmap (const std::string& path);
void DestroyBitmap (ALLEGRO_BITMAP);

class BitmapLoader {
    typedef std::map<std::string, ALLEGRO_BITMAP *> BitmapMap;
    BitmapMap bitmaps;
    ALLEGRO_BITMAP *GetBitmap (const std::string path) const;
public:
    ALLEGRO_BITMAP *Load (const std::string& path);
    BitmapLoader(void);
    ~BitmapLoader();
};

#endif